package com.training.arrays;

import java.util.Arrays;

public class ArraysCopyDemo {
	public static void main(String[] args) {
		int[] a = { 123, 5451, 31484, 1, 21, 54, 1, 3 };
		int[] b = Arrays.copyOf(a, 5);
		System.out.println(Arrays.toString(b));
		System.out.println(b.length);
	}
}
